<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('scholarships')} > ${i18n.getMessage('edit')}">
	<a href="#" onclick="cc('system/showScholarships.sgt')">${i18n.getMessage('list')}</a>
</@showTitle>

<div id="error" style="display:none"></div>

<form action="system/editScholarship.sgt" validator="system/validateScholarship.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	<table id="dataTable" align="center" cellspacing="5" cellpadding="0">
		<input type="hidden" name="id" value="${item.id}"/>
		<tr>
			<td class="name" style="vertical-align:top"><@required/>${i18n.getMessage('name')}:</td>
			<td><textarea name="name" style="width:300px;height:80px;">${item.name}</textarea></td>
		</tr>
		<tr>
			<td class="name"> ${i18n.getMessage('options')}:</td>
			<td><input type="checkbox" name="active" value="true" <#if item.active>checked</#if>/> ${i18n.getMessage('active')}</td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('edit')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/> 
			</td>
		</tr>
	</table>
</form>

<script>
	$('error').hide();
</script>